Add a basic benchmark#593
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #593 +/- ##
=======================================
Coverage 60.84% 60.84%
=======================================
Files 11 11
Lines 710 710
=======================================
Hits 432 432
Misses 261 261
Partials 17 17 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Latest successful benchmark comparison here: https://github.com/simonmarty/secrets-store-csi-driver-provider-aws/actions/runs/24364877168 |
| uses: actions/cache/restore@v5 | ||
| with: | ||
| path: bench-baseline.json | ||
| key: benchmark-baseline-${{ runner.os }}-${{ github.event.pull_request.base.sha }} |
There was a problem hiding this comment.
As you pointed out on the agent, cache entries are immutable and the exact-key restore here might silently miss when the PR base SHA doesn't match a saved key. The GitHub docs recommend using a unique-per-run key with a restore-keys prefix fallback in a single actions/cache step, which lets you drop the separate save step too. I just fixed this on the agent repo
There was a problem hiding this comment.
The cache entry for the base sha should always exist since we run the action on every push.
There was a problem hiding this comment.
I'm okay to ship as it'll work in the common case, and a miss would just mean no comparison (not a failure). The github-action-benchmark step will still run, it just won't have a baseline to compare against. Non-blocking.
Description
Why is this change being made?
What is changing?
Related Links
Testing
How was this tested?
When testing locally, provide testing artifact(s):
Reviewee Checklist
Update the checklist after submitting the PR
If not, why:
If not, why:
If not, why:
If not, why:
If not, why: Benchmark doesn't run over the network, no changes to integ tests.
If not, why:
If not, why:
If not, why:
If not, why:
If not, why: No breaking changes, this is purely incremental.
Reviewer Checklist
All reviewers please ensure the following are true before reviewing:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.